<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>class Test::Unit::UI::Console::TestRunner - test-unit: Ruby Standard Library Documentation</title>


<script src="../../../../js/navigation.js" defer></script>
<script src="../../../../js/search.js" defer></script>
<script src="../../../../js/search_index.js" defer></script>
<script src="../../../../js/searcher.js" defer></script>
<script src="../../../../js/darkfish.js" defer></script>

<script src="../../../../js/jquery-3.2.0.min.js"></script>

<script src="../../../../js/vue.min.js"></script>
<script src="../../../../js/js.cookie.min.js"></script>

<link href="../../../../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../../../../css/rdoc.css" rel="stylesheet">
<link href="../../../../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../../../../";
  var index_rel_prefix = "../../../../";
  var darkModeCsseHref = "../../../../css/rdoc-dm.css"
  var defaultModeCssHref = "../../../../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="class">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../../../../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../../../../table_of_contents.html#pages">Pages</a>
    <a href="../../../../table_of_contents.html#classes">Classes</a>
    <a href="../../../../table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
<div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  <p class="link"><a href="../TestRunner.html">Test::Unit::UI::TestRunner</a>
</div>

        
<div id="includes-section" class="nav-section">
  <h3>Included Modules</h3>

  <ul class="link-list">
    <li><a class="include" href="OutputLevel.html">Test::Unit::UI::Console::OutputLevel</a>
  </ul>
</div>

        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li class="calls-super" ><a href="#method-c-new">::new</a>
    <li ><a href="#method-i-add_fault">#add_fault</a>
    <li ><a href="#method-i-attach_to_mediator">#attach_to_mediator</a>
    <li ><a href="#method-i-categorize_fault">#categorize_fault</a>
    <li ><a href="#method-i-categorize_faults">#categorize_faults</a>
    <li ><a href="#method-i-change_output_level">#change_output_level</a>
    <li ><a href="#method-i-color">#color</a>
    <li ><a href="#method-i-fault_class_color">#fault_class_color</a>
    <li ><a href="#method-i-fault_class_color_name">#fault_class_color_name</a>
    <li ><a href="#method-i-fault_color">#fault_color</a>
    <li ><a href="#method-i-fault_marker_color">#fault_marker_color</a>
    <li ><a href="#method-i-fetch_code_snippet">#fetch_code_snippet</a>
    <li ><a href="#method-i-finished">#finished</a>
    <li ><a href="#method-i-format_fault">#format_fault</a>
    <li ><a href="#method-i-guess_color_availability">#guess_color_availability</a>
    <li ><a href="#method-i-guess_output_level">#guess_output_level</a>
    <li ><a href="#method-i-guess_progress_row_max">#guess_progress_row_max</a>
    <li ><a href="#method-i-guess_progress_style">#guess_progress_style</a>
    <li ><a href="#method-i-guess_term_width">#guess_term_width</a>
    <li ><a href="#method-i-guess_term_width_from_env">#guess_term_width_from_env</a>
    <li ><a href="#method-i-guess_term_width_from_io">#guess_term_width_from_io</a>
    <li ><a href="#method-i-indent">#indent</a>
    <li ><a href="#method-i-max_digit">#max_digit</a>
    <li ><a href="#method-i-nl">#nl</a>
    <li ><a href="#method-i-output">#output</a>
    <li ><a href="#method-i-output-3F">#output?</a>
    <li ><a href="#method-i-output_code_snippet">#output_code_snippet</a>
    <li ><a href="#method-i-output_failure_message">#output_failure_message</a>
    <li ><a href="#method-i-output_fault_backtrace">#output_fault_backtrace</a>
    <li ><a href="#method-i-output_fault_in_detail">#output_fault_in_detail</a>
    <li ><a href="#method-i-output_fault_in_short">#output_fault_in_short</a>
    <li ><a href="#method-i-output_fault_message">#output_fault_message</a>
    <li ><a href="#method-i-output_faults">#output_faults</a>
    <li ><a href="#method-i-output_faults_in_detail">#output_faults_in_detail</a>
    <li ><a href="#method-i-output_faults_in_short">#output_faults_in_short</a>
    <li ><a href="#method-i-output_progress">#output_progress</a>
    <li ><a href="#method-i-output_progress_in_detail">#output_progress_in_detail</a>
    <li ><a href="#method-i-output_progress_in_detail_marker">#output_progress_in_detail_marker</a>
    <li ><a href="#method-i-output_setup_end">#output_setup_end</a>
    <li ><a href="#method-i-output_single">#output_single</a>
    <li ><a href="#method-i-output_started">#output_started</a>
    <li ><a href="#method-i-output_statistics">#output_statistics</a>
    <li ><a href="#method-i-output_summary_marker">#output_summary_marker</a>
    <li ><a href="#method-i-ruby_2_0_or_later-3F">#ruby_2_0_or_later?</a>
    <li class="calls-super" ><a href="#method-i-setup_mediator">#setup_mediator</a>
    <li ><a href="#method-i-started">#started</a>
    <li ><a href="#method-i-suite_name">#suite_name</a>
    <li ><a href="#method-i-summary_marker_color">#summary_marker_color</a>
    <li ><a href="#method-i-test_finished">#test_finished</a>
    <li ><a href="#method-i-test_started">#test_started</a>
    <li ><a href="#method-i-test_suite_finished">#test_suite_finished</a>
    <li ><a href="#method-i-test_suite_started">#test_suite_started</a>
    <li ><a href="#method-i-windows-3F">#windows?</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="class-Test::Unit::UI::Console::TestRunner">
    <h1 id="class-Test::Unit::UI::Console::TestRunner" class="class">
      class Test::Unit::UI::Console::TestRunner
    </h1>

    <section class="description">
    
<p>Runs a <a href="../../TestSuite.html"><code>Test::Unit::TestSuite</code></a> on the console.</p>

    </section>

      <section id="5Buntitled-5D" class="documentation-section">


      <section class="constants-list">
      <header>
      <h3>Constants</h3>
      </header>
      <dl>
          <dt id="TERM_COLOR_SUPPORT">TERM_COLOR_SUPPORT
          <dd>
        </dl>
        </section>



                <section id="public-class-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Class Methods</h3>
                </header>

                  <div id="method-c-new" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">new</span><span
                                class="method-args">(suite, options={})</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Creates a new <a href="TestRunner.html"><code>TestRunner</code></a> for running the passed suite. If quiet_mode is true, the output while running is limited to progress dots, errors and failures, and the final result. io specifies where runner output should go to; defaults to STDOUT.</p>
                                <div class="method-calls-super">
                                  Calls superclass method
                                  <a href="../TestRunner.html#method-c-new"><code>Test::Unit::UI::TestRunner::new</code></a>
                              </div>

                              <div class="method-source-code" id="new-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 37</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">suite</span>, <span class="ruby-identifier">options</span>={})
  <span class="ruby-keyword">super</span>
  <span class="ruby-ivar">@output_level</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:output_level</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">guess_output_level</span>
  <span class="ruby-ivar">@output</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:output</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">STDOUT</span>
  <span class="ruby-ivar">@use_color</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:use_color</span>]
  <span class="ruby-ivar">@use_color</span> = <span class="ruby-identifier">guess_color_availability</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@use_color</span>.<span class="ruby-identifier">nil?</span>
  <span class="ruby-ivar">@color_scheme</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:color_scheme</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">ColorScheme</span>.<span class="ruby-identifier">default</span>
  <span class="ruby-ivar">@reset_color</span> = <span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;reset&quot;</span>)
  <span class="ruby-ivar">@progress_style</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:progress_style</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">guess_progress_style</span>
  <span class="ruby-ivar">@progress_marks</span> = [<span class="ruby-string">&quot;|&quot;</span>, <span class="ruby-string">&quot;/&quot;</span>, <span class="ruby-string">&quot;-&quot;</span>, <span class="ruby-string">&quot;\\&quot;</span>, <span class="ruby-string">&quot;|&quot;</span>, <span class="ruby-string">&quot;/&quot;</span>, <span class="ruby-string">&quot;-&quot;</span>, <span class="ruby-string">&quot;\\&quot;</span>]
  <span class="ruby-ivar">@progress_mark_index</span> = <span class="ruby-value">0</span>
  <span class="ruby-ivar">@progress_row</span> = <span class="ruby-value">0</span>
  <span class="ruby-ivar">@progress_row_max</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:progress_row_max</span>]
  <span class="ruby-ivar">@progress_row_max</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">guess_progress_row_max</span>
  <span class="ruby-ivar">@show_detail_immediately</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:show_detail_immediately</span>]
  <span class="ruby-ivar">@show_detail_immediately</span> = <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@show_detail_immediately</span>.<span class="ruby-identifier">nil?</span>
  <span class="ruby-ivar">@already_outputted</span> = <span class="ruby-keyword">false</span>
  <span class="ruby-ivar">@indent</span> = <span class="ruby-value">0</span>
  <span class="ruby-ivar">@top_level</span> = <span class="ruby-keyword">true</span>
  <span class="ruby-ivar">@current_output_level</span> = <span class="ruby-constant">NORMAL</span>
  <span class="ruby-ivar">@faults</span> = []
  <span class="ruby-ivar">@code_snippet_fetcher</span> = <span class="ruby-constant">CodeSnippetFetcher</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-ivar">@test_suites</span> = []
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="private-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Private Instance Methods</h3>
                </header>

                  <div id="method-i-add_fault" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">add_fault</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="add_fault-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 98</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_fault</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-ivar">@faults</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">fault</span>
  <span class="ruby-identifier">output_progress</span>(<span class="ruby-identifier">fault</span>.<span class="ruby-identifier">single_character_display</span>,
                  <span class="ruby-identifier">fault_marker_color</span>(<span class="ruby-identifier">fault</span>))
  <span class="ruby-identifier">output_progress_in_detail</span>(<span class="ruby-identifier">fault</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@show_detail_immediately</span>
  <span class="ruby-ivar">@already_outputted</span> = <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">critical?</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-attach_to_mediator" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">attach_to_mediator</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="attach_to_mediator-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 81</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">attach_to_mediator</span>
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestResult</span><span class="ruby-operator">::</span><span class="ruby-constant">FAULT</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:add_fault</span>))
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestRunnerMediator</span><span class="ruby-operator">::</span><span class="ruby-constant">STARTED</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:started</span>))
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestRunnerMediator</span><span class="ruby-operator">::</span><span class="ruby-constant">FINISHED</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:finished</span>))
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestCase</span><span class="ruby-operator">::</span><span class="ruby-constant">STARTED_OBJECT</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:test_started</span>))
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestCase</span><span class="ruby-operator">::</span><span class="ruby-constant">FINISHED_OBJECT</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:test_finished</span>))
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestSuite</span><span class="ruby-operator">::</span><span class="ruby-constant">STARTED_OBJECT</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:test_suite_started</span>))
  <span class="ruby-ivar">@mediator</span>.<span class="ruby-identifier">add_listener</span>(<span class="ruby-constant">TestSuite</span><span class="ruby-operator">::</span><span class="ruby-constant">FINISHED_OBJECT</span>,
                         <span class="ruby-operator">&amp;</span><span class="ruby-identifier">method</span>(<span class="ruby-value">:test_suite_finished</span>))
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-categorize_fault" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">categorize_fault</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="categorize_fault-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 176</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">categorize_fault</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">fault</span>
  <span class="ruby-keyword">when</span> <span class="ruby-constant">Omission</span>
    <span class="ruby-value">:omissions</span>
  <span class="ruby-keyword">when</span> <span class="ruby-constant">Notification</span>
    <span class="ruby-value">:notifications</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-value">:need_detail_faults</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-categorize_faults" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">categorize_faults</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="categorize_faults-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 166</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">categorize_faults</span>
  <span class="ruby-identifier">faults</span> = {}
  <span class="ruby-ivar">@faults</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fault</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">category</span> = <span class="ruby-identifier">categorize_fault</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-identifier">faults</span>[<span class="ruby-identifier">category</span>] <span class="ruby-operator">||=</span> []
    <span class="ruby-identifier">faults</span>[<span class="ruby-identifier">category</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">fault</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">faults</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-change_output_level" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">change_output_level</span><span
                                class="method-args">(level) { || ... }</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="change_output_level-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 63</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_output_level</span>(<span class="ruby-identifier">level</span>)
  <span class="ruby-identifier">old_output_level</span> = <span class="ruby-ivar">@current_output_level</span>
  <span class="ruby-ivar">@current_output_level</span> = <span class="ruby-identifier">level</span>
  <span class="ruby-keyword">yield</span>
  <span class="ruby-ivar">@current_output_level</span> = <span class="ruby-identifier">old_output_level</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-color" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">color</span><span
                                class="method-args">(name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="color-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 510</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">color</span>(<span class="ruby-identifier">name</span>)
  <span class="ruby-identifier">_color</span> = <span class="ruby-ivar">@color_scheme</span>[<span class="ruby-identifier">name</span>]
  <span class="ruby-identifier">_color</span> <span class="ruby-operator">||=</span> <span class="ruby-ivar">@color_scheme</span>[<span class="ruby-string">&quot;success&quot;</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;pass&quot;</span>
  <span class="ruby-identifier">_color</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">ColorScheme</span>.<span class="ruby-identifier">default</span>[<span class="ruby-identifier">name</span>]
  <span class="ruby-identifier">_color</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-fault_class_color" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">fault_class_color</span><span
                                class="method-args">(fault_class)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="fault_class_color-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 521</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fault_class_color</span>(<span class="ruby-identifier">fault_class</span>)
  <span class="ruby-identifier">color</span>(<span class="ruby-identifier">fault_class_color_name</span>(<span class="ruby-identifier">fault_class</span>))
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-fault_class_color_name" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">fault_class_color_name</span><span
                                class="method-args">(fault_class)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="fault_class_color_name-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 517</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fault_class_color_name</span>(<span class="ruby-identifier">fault_class</span>)
  <span class="ruby-identifier">fault_class</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/::/</span>).<span class="ruby-identifier">last</span>.<span class="ruby-identifier">downcase</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-fault_color" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">fault_color</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="fault_color-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 525</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fault_color</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-identifier">fault_class_color</span>(<span class="ruby-identifier">fault</span>.<span class="ruby-identifier">class</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-fault_marker_color" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">fault_marker_color</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="fault_marker_color-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 529</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fault_marker_color</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-identifier">color</span>(<span class="ruby-node">&quot;#{fault_class_color_name(fault.class)}-marker&quot;</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-fetch_code_snippet" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">fetch_code_snippet</span><span
                                class="method-args">(file, line_number)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="fetch_code_snippet-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 245</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fetch_code_snippet</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">line_number</span>)
  <span class="ruby-ivar">@code_snippet_fetcher</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">line_number</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-finished" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">finished</span><span
                                class="method-args">(elapsed_time)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="finished-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 115</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">finished</span>(<span class="ruby-identifier">elapsed_time</span>)
  <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@show_detail_immediately</span>
    <span class="ruby-identifier">nl</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">output?</span>(<span class="ruby-constant">NORMAL</span>) <span class="ruby-keyword">and</span> <span class="ruby-operator">!</span><span class="ruby-identifier">output?</span>(<span class="ruby-constant">VERBOSE</span>)
    <span class="ruby-identifier">output_faults</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">case</span> <span class="ruby-ivar">@progress_style</span>
  <span class="ruby-keyword">when</span> <span class="ruby-value">:inplace</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;\r&quot;</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-constant">PROGRESS_ONLY</span>)
  <span class="ruby-keyword">when</span> <span class="ruby-value">:mark</span>
    <span class="ruby-identifier">nl</span>(<span class="ruby-constant">PROGRESS_ONLY</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output_statistics</span>(<span class="ruby-identifier">elapsed_time</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-format_fault" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">format_fault</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="format_fault-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 326</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">format_fault</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">long_display</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_color_availability" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_color_availability</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_color_availability-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 560</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_color_availability</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;GITHUB_ACTIONS&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-string">&quot;true&quot;</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">tty?</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">windows?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">ruby_2_0_or_later?</span>
  <span class="ruby-keyword">case</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;TERM&quot;</span>]
  <span class="ruby-keyword">when</span> <span class="ruby-regexp">/(?:term|screen)(?:-(?:256)?color)?\z/</span>
    <span class="ruby-keyword">true</span>
  <span class="ruby-keyword">when</span> <span class="ruby-constant">TERM_COLOR_SUPPORT</span>
    <span class="ruby-keyword">true</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;EMACS&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-string">&quot;t&quot;</span>
    <span class="ruby-keyword">false</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_output_level" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_output_level</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_output_level-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 537</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_output_level</span>
  <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;GITHUB_ACTIONS&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-string">&quot;true&quot;</span>
    <span class="ruby-constant">IMPORTANT_FAULTS_ONLY</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-constant">NORMAL</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_progress_row_max" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_progress_row_max</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_progress_row_max-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 593</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_progress_row_max</span>
  <span class="ruby-identifier">term_width</span> = <span class="ruby-identifier">guess_term_width</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">term_width</span>.<span class="ruby-identifier">zero?</span>
    <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;EMACS&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-string">&quot;t&quot;</span>
      <span class="ruby-value">-1</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-value">79</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">term_width</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_progress_style" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_progress_style</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_progress_style-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 575</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_progress_style</span>
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@output_level</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-constant">VERBOSE</span>
    <span class="ruby-value">:mark</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">return</span> <span class="ruby-value">:fault_only</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;GITHUB_ACTIONS&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-string">&quot;true&quot;</span>
    <span class="ruby-keyword">return</span> <span class="ruby-value">:fault_only</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">tty?</span>
    <span class="ruby-value">:inplace</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_term_width" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_term_width</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_term_width-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 606</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_term_width</span>
  <span class="ruby-identifier">guess_term_width_from_io</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">guess_term_width_from_env</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_term_width_from_env" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_term_width_from_env</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_term_width_from_env-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 622</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_term_width_from_env</span>
  <span class="ruby-identifier">env</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;COLUMNS&quot;</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">&quot;TERM_WIDTH&quot;</span>]
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">env</span>.<span class="ruby-identifier">nil?</span>

  <span class="ruby-keyword">begin</span>
    <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">env</span>)
  <span class="ruby-keyword">rescue</span> <span class="ruby-constant">ArgumentError</span>
    <span class="ruby-keyword">nil</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-guess_term_width_from_io" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">guess_term_width_from_io</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="guess_term_width_from_io-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 610</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">guess_term_width_from_io</span>
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:winsize</span>)
    <span class="ruby-keyword">begin</span>
      <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">winsize</span>[<span class="ruby-value">1</span>]
    <span class="ruby-keyword">rescue</span> <span class="ruby-constant">SystemCallError</span>
      <span class="ruby-keyword">nil</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">nil</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-indent" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">indent</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="indent-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 433</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">indent</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">output?</span>(<span class="ruby-constant">VERBOSE</span>)
    <span class="ruby-string">&quot; &quot;</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@indent</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-string">&quot;&quot;</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-max_digit" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">max_digit</span><span
                                class="method-args">(max_number)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="max_digit-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 140</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">max_digit</span>(<span class="ruby-identifier">max_number</span>)
  (<span class="ruby-constant">Math</span>.<span class="ruby-identifier">log10</span>(<span class="ruby-identifier">max_number</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>).<span class="ruby-identifier">truncate</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-nl" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">nl</span><span
                                class="method-args">(level=nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="nl-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 441</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">nl</span>(<span class="ruby-identifier">level</span>=<span class="ruby-keyword">nil</span>)
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;&quot;</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">level</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output</span><span
                                class="method-args">(something, color=nil, level=nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 445</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output</span>(<span class="ruby-identifier">something</span>, <span class="ruby-identifier">color</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">level</span>=<span class="ruby-keyword">nil</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">output?</span>(<span class="ruby-identifier">level</span>)
  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">something</span>, <span class="ruby-identifier">color</span>, <span class="ruby-identifier">level</span>)
  <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output?</span><span
                                class="method-args">(level)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output-3F-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 506</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output?</span>(<span class="ruby-identifier">level</span>)
  (<span class="ruby-identifier">level</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@current_output_level</span>) <span class="ruby-operator">&lt;=</span> <span class="ruby-ivar">@output_level</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_code_snippet" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_code_snippet</span><span
                                class="method-args">(lines, target_line_color=nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_code_snippet-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 249</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_code_snippet</span>(<span class="ruby-identifier">lines</span>, <span class="ruby-identifier">target_line_color</span>=<span class="ruby-keyword">nil</span>)
  <span class="ruby-identifier">max_n</span> = <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">n</span>, <span class="ruby-identifier">line</span>, <span class="ruby-identifier">attributes</span><span class="ruby-operator">|</span> <span class="ruby-identifier">n</span>}.<span class="ruby-identifier">max</span>
  <span class="ruby-identifier">digits</span> = (<span class="ruby-constant">Math</span>.<span class="ruby-identifier">log10</span>(<span class="ruby-identifier">max_n</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>).<span class="ruby-identifier">truncate</span>
  <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span>, <span class="ruby-identifier">line</span>, <span class="ruby-identifier">attributes</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">attributes</span>[<span class="ruby-value">:target_line?</span>]
      <span class="ruby-identifier">line_color</span> = <span class="ruby-identifier">target_line_color</span>
      <span class="ruby-identifier">current_line_mark</span> = <span class="ruby-string">&quot;=&gt;&quot;</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-identifier">line_color</span> = <span class="ruby-keyword">nil</span>
      <span class="ruby-identifier">current_line_mark</span> = <span class="ruby-string">&quot;&quot;</span>
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;  %2s %*d: %s&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">current_line_mark</span>, <span class="ruby-identifier">digits</span>, <span class="ruby-identifier">n</span>, <span class="ruby-identifier">line</span>],
           <span class="ruby-identifier">line_color</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_failure_message" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_failure_message</span><span
                                class="method-args">(failure)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_failure_message-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 265</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_failure_message</span>(<span class="ruby-identifier">failure</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">expected</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:encoding</span>) <span class="ruby-keyword">and</span>
      <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">actual</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:encoding</span>) <span class="ruby-keyword">and</span>
      <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">expected</span>.<span class="ruby-identifier">encoding</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">actual</span>.<span class="ruby-identifier">encoding</span>
    <span class="ruby-identifier">need_encoding</span> = <span class="ruby-keyword">true</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">need_encoding</span> = <span class="ruby-keyword">false</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-identifier">failure</span>.<span class="ruby-identifier">user_message</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">user_message</span>
  <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;&lt;&quot;</span>)
  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">failure</span>.<span class="ruby-identifier">inspected_expected</span>, <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;pass&quot;</span>))
  <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;&gt;&quot;</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">need_encoding</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;(&quot;</span>)
    <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">failure</span>.<span class="ruby-identifier">expected</span>.<span class="ruby-identifier">encoding</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;pass&quot;</span>))
    <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;)&quot;</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot; expected but was&quot;</span>)
  <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;&lt;&quot;</span>)
  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">failure</span>.<span class="ruby-identifier">inspected_actual</span>, <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;failure&quot;</span>))
  <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;&gt;&quot;</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">need_encoding</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;(&quot;</span>)
    <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">failure</span>.<span class="ruby-identifier">actual</span>.<span class="ruby-identifier">encoding</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;failure&quot;</span>))
    <span class="ruby-identifier">output_single</span>(<span class="ruby-string">&quot;)&quot;</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;&quot;</span>)
  <span class="ruby-identifier">from</span>, <span class="ruby-identifier">to</span> = <span class="ruby-identifier">prepare_for_diff</span>(<span class="ruby-identifier">failure</span>.<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">actual</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">from</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">to</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">need_encoding</span>
      <span class="ruby-keyword">unless</span> <span class="ruby-identifier">from</span>.<span class="ruby-identifier">valid_encoding?</span>
        <span class="ruby-identifier">from</span> = <span class="ruby-identifier">from</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">&quot;ASCII-8BIT&quot;</span>)
      <span class="ruby-keyword">end</span>
      <span class="ruby-keyword">unless</span> <span class="ruby-identifier">to</span>.<span class="ruby-identifier">valid_encoding?</span>
        <span class="ruby-identifier">to</span> = <span class="ruby-identifier">to</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-string">&quot;ASCII-8BIT&quot;</span>)
      <span class="ruby-keyword">end</span>
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">from_lines</span> = <span class="ruby-identifier">from</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\r?\n/</span>)
    <span class="ruby-identifier">to_lines</span> = <span class="ruby-identifier">to</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\r?\n/</span>)
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">need_encoding</span>
      <span class="ruby-identifier">from_lines</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;&quot;</span>
      <span class="ruby-identifier">to_lines</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;&quot;</span>
      <span class="ruby-identifier">from_lines</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Encoding: #{failure.expected.encoding.name}&quot;</span>
      <span class="ruby-identifier">to_lines</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Encoding: #{failure.actual.encoding.name}&quot;</span>
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">differ</span> = <span class="ruby-constant">ColorizedReadableDiffer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">from_lines</span>, <span class="ruby-identifier">to_lines</span>, <span class="ruby-keyword">self</span>)
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">differ</span>.<span class="ruby-identifier">need_diff?</span>
      <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;&quot;</span>)
      <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;diff:&quot;</span>)
      <span class="ruby-identifier">differ</span>.<span class="ruby-identifier">diff</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_fault_backtrace" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_fault_backtrace</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_fault_backtrace-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 217</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_fault_backtrace</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-identifier">detector</span> = <span class="ruby-constant">FaultLocationDetector</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">fault</span>, <span class="ruby-ivar">@code_snippet_fetcher</span>)
  <span class="ruby-identifier">backtrace</span> = <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">location</span>
  <span class="ruby-comment"># workaround for test-spec. :&lt;</span>
  <span class="ruby-comment"># see also GitHub:#22</span>
  <span class="ruby-identifier">backtrace</span> <span class="ruby-operator">||=</span> []

  <span class="ruby-identifier">code_snippet_backtrace_index</span> = <span class="ruby-keyword">nil</span>
  <span class="ruby-identifier">code_snippet_lines</span> = <span class="ruby-keyword">nil</span>
  <span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">next</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">detector</span>.<span class="ruby-identifier">target?</span>(<span class="ruby-identifier">entry</span>)
    <span class="ruby-identifier">file</span>, <span class="ruby-identifier">line_number</span>, = <span class="ruby-identifier">detector</span>.<span class="ruby-identifier">split_backtrace_entry</span>(<span class="ruby-identifier">entry</span>)
    <span class="ruby-identifier">lines</span> = <span class="ruby-identifier">fetch_code_snippet</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">line_number</span>)
    <span class="ruby-keyword">unless</span> <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">empty?</span>
      <span class="ruby-identifier">code_snippet_backtrace_index</span> = <span class="ruby-identifier">i</span>
      <span class="ruby-identifier">code_snippet_lines</span> = <span class="ruby-identifier">lines</span>
      <span class="ruby-keyword">break</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">entry</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">output</span>(<span class="ruby-identifier">entry</span>)
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">code_snippet_backtrace_index</span>
      <span class="ruby-identifier">output_code_snippet</span>(<span class="ruby-identifier">code_snippet_lines</span>, <span class="ruby-identifier">fault_color</span>(<span class="ruby-identifier">fault</span>))
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_fault_in_detail" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_fault_in_detail</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_fault_in_detail-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 187</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_fault_in_detail</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Failure</span>) <span class="ruby-keyword">and</span>
      <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">inspected_expected</span> <span class="ruby-keyword">and</span>
      <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">inspected_actual</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;#{fault.label}: &quot;</span>)
    <span class="ruby-identifier">output</span>(<span class="ruby-identifier">fault</span>.<span class="ruby-identifier">test_name</span>, <span class="ruby-identifier">fault_color</span>(<span class="ruby-identifier">fault</span>))
    <span class="ruby-identifier">output_fault_backtrace</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-identifier">output_failure_message</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;#{fault.label}: &quot;</span>)
    <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">fault</span>.<span class="ruby-identifier">test_name</span>, <span class="ruby-identifier">fault_color</span>(<span class="ruby-identifier">fault</span>))
    <span class="ruby-identifier">output_fault_message</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-identifier">output_fault_backtrace</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_fault_in_short" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_fault_in_short</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_fault_in_short-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 319</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_fault_in_short</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;#{fault.label}: &quot;</span>)
  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">fault</span>.<span class="ruby-identifier">message</span>, <span class="ruby-identifier">fault_color</span>(<span class="ruby-identifier">fault</span>))
  <span class="ruby-identifier">output</span>(<span class="ruby-node">&quot; [#{fault.test_name}]&quot;</span>)
  <span class="ruby-identifier">output</span>(<span class="ruby-identifier">fault</span>.<span class="ruby-identifier">location</span>.<span class="ruby-identifier">first</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_fault_message" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_fault_message</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_fault_message-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 203</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_fault_message</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-identifier">message</span> = <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">message</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">nil?</span>

  <span class="ruby-keyword">if</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;\n&quot;</span>)
    <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;:&quot;</span>)
    <span class="ruby-identifier">message</span>.<span class="ruby-identifier">each_line</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
      <span class="ruby-identifier">output</span>(<span class="ruby-node">&quot;  #{line.chomp}&quot;</span>)
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">output</span>(<span class="ruby-node">&quot;: #{message}&quot;</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_faults" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_faults</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_faults-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 129</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_faults</span>
  <span class="ruby-identifier">categorized_faults</span> = <span class="ruby-identifier">categorize_faults</span>
  <span class="ruby-identifier">change_output_level</span>(<span class="ruby-constant">IMPORTANT_FAULTS_ONLY</span>) <span class="ruby-keyword">do</span>
    <span class="ruby-identifier">output_faults_in_detail</span>(<span class="ruby-identifier">categorized_faults</span>[<span class="ruby-value">:need_detail_faults</span>])
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output_faults_in_short</span>(<span class="ruby-string">&quot;Omissions&quot;</span>, <span class="ruby-constant">Omission</span>,
                         <span class="ruby-identifier">categorized_faults</span>[<span class="ruby-value">:omissions</span>])
  <span class="ruby-identifier">output_faults_in_short</span>(<span class="ruby-string">&quot;Notifications&quot;</span>, <span class="ruby-constant">Notification</span>,
                         <span class="ruby-identifier">categorized_faults</span>[<span class="ruby-value">:notifications</span>])
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_faults_in_detail" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_faults_in_detail</span><span
                                class="method-args">(faults)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_faults_in_detail-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 144</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_faults_in_detail</span>(<span class="ruby-identifier">faults</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">faults</span>.<span class="ruby-identifier">nil?</span>
  <span class="ruby-identifier">digit</span> = <span class="ruby-identifier">max_digit</span>(<span class="ruby-identifier">faults</span>.<span class="ruby-identifier">size</span>)
  <span class="ruby-identifier">faults</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fault</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">nl</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;%#{digit}d) &quot;</span> <span class="ruby-operator">%</span> (<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>))
    <span class="ruby-identifier">output_fault_in_detail</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_faults_in_short" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_faults_in_short</span><span
                                class="method-args">(label, fault_class, faults)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_faults_in_short-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 154</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_faults_in_short</span>(<span class="ruby-identifier">label</span>, <span class="ruby-identifier">fault_class</span>, <span class="ruby-identifier">faults</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">faults</span>.<span class="ruby-identifier">nil?</span>
  <span class="ruby-identifier">digit</span> = <span class="ruby-identifier">max_digit</span>(<span class="ruby-identifier">faults</span>.<span class="ruby-identifier">size</span>)
  <span class="ruby-identifier">nl</span>
  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">label</span>, <span class="ruby-identifier">fault_class_color</span>(<span class="ruby-identifier">fault_class</span>))
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;:&quot;</span>)
  <span class="ruby-identifier">faults</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fault</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;%#{digit}d) &quot;</span> <span class="ruby-operator">%</span> (<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>))
    <span class="ruby-identifier">output_fault_in_short</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_progress" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_progress</span><span
                                class="method-args">(mark, color=nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_progress-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 465</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_progress</span>(<span class="ruby-identifier">mark</span>, <span class="ruby-identifier">color</span>=<span class="ruby-keyword">nil</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@progress_style</span> <span class="ruby-operator">==</span> <span class="ruby-value">:inplace</span>
    <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;\r#{mark}&quot;</span>, <span class="ruby-identifier">color</span>, <span class="ruby-constant">PROGRESS_ONLY</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">output?</span>(<span class="ruby-constant">PROGRESS_ONLY</span>)
    <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">mark</span>, <span class="ruby-identifier">color</span>)
    <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@progress_row_max</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
    <span class="ruby-ivar">@progress_row</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">mark</span>.<span class="ruby-identifier">size</span>
    <span class="ruby-keyword">if</span> <span class="ruby-ivar">@progress_row</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-ivar">@progress_row_max</span>
      <span class="ruby-identifier">nl</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@output_level</span> <span class="ruby-operator">==</span> <span class="ruby-constant">VERBOSE</span>
      <span class="ruby-ivar">@progress_row</span> = <span class="ruby-value">0</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_progress_in_detail" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_progress_in_detail</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_progress_in_detail-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 485</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_progress_in_detail</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@output_level</span> <span class="ruby-operator">==</span> <span class="ruby-constant">SILENT</span>
  <span class="ruby-identifier">need_detail_faults</span> = (<span class="ruby-identifier">categorize_fault</span>(<span class="ruby-identifier">fault</span>) <span class="ruby-operator">==</span> <span class="ruby-value">:need_detail_faults</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">need_detail_faults</span>
    <span class="ruby-identifier">log_level</span> = <span class="ruby-constant">IMPORTANT_FAULTS_ONLY</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">log_level</span> = <span class="ruby-ivar">@current_output_level</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">change_output_level</span>(<span class="ruby-identifier">log_level</span>) <span class="ruby-keyword">do</span>
    <span class="ruby-identifier">nl</span>(<span class="ruby-constant">NORMAL</span>)
    <span class="ruby-identifier">output_progress_in_detail_marker</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">need_detail_faults</span>
      <span class="ruby-identifier">output_fault_in_detail</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-keyword">else</span>
      <span class="ruby-identifier">output_fault_in_short</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">output_progress_in_detail_marker</span>(<span class="ruby-identifier">fault</span>)
    <span class="ruby-ivar">@progress_row</span> = <span class="ruby-value">0</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_progress_in_detail_marker" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_progress_in_detail_marker</span><span
                                class="method-args">(fault)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_progress_in_detail_marker-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 480</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_progress_in_detail_marker</span>(<span class="ruby-identifier">fault</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@progress_row_max</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-value">0</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;=&quot;</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@progress_row_max</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_setup_end" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_setup_end</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_setup_end-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 75</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_setup_end</span>
  <span class="ruby-identifier">suite_name</span> = <span class="ruby-ivar">@suite</span>.<span class="ruby-identifier">to_s</span>
  <span class="ruby-identifier">suite_name</span> = <span class="ruby-ivar">@suite</span>.<span class="ruby-identifier">name</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@suite</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Module</span>)
  <span class="ruby-identifier">output</span>(<span class="ruby-node">&quot;Loaded suite #{suite_name}&quot;</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_single" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_single</span><span
                                class="method-args">(something, color=nil, level=nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_single-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 451</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_single</span>(<span class="ruby-identifier">something</span>, <span class="ruby-identifier">color</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">level</span>=<span class="ruby-keyword">nil</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">output?</span>(<span class="ruby-identifier">level</span>)
  <span class="ruby-identifier">something</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">each_line</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">if</span> <span class="ruby-ivar">@use_color</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">color</span>
      <span class="ruby-identifier">line</span> = <span class="ruby-string">&quot;%s%s%s&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">color</span>.<span class="ruby-identifier">escape_sequence</span>,
                         <span class="ruby-identifier">line</span>,
                         <span class="ruby-ivar">@reset_color</span>.<span class="ruby-identifier">escape_sequence</span>]
    <span class="ruby-keyword">end</span>
    <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">line</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">flush</span>
  <span class="ruby-keyword">true</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_started" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_started</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_started-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 111</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_started</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;Started&quot;</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_statistics" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_statistics</span><span
                                class="method-args">(elapsed_time)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_statistics-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 330</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_statistics</span>(<span class="ruby-identifier">elapsed_time</span>)
  <span class="ruby-identifier">change_output_level</span>(<span class="ruby-constant">IMPORTANT_FAULTS_ONLY</span>) <span class="ruby-keyword">do</span>
    <span class="ruby-identifier">output</span>(<span class="ruby-node">&quot;Finished in #{elapsed_time} seconds.&quot;</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output_summary_marker</span>
  <span class="ruby-identifier">change_output_level</span>(<span class="ruby-constant">IMPORTANT_FAULTS_ONLY</span>) <span class="ruby-keyword">do</span>
    <span class="ruby-identifier">output</span>(<span class="ruby-ivar">@result</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;%g%% passed&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">pass_percentage</span>)
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">elapsed_time</span>.<span class="ruby-identifier">zero?</span>
    <span class="ruby-identifier">output_summary_marker</span>
    <span class="ruby-identifier">test_throughput</span> = <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">run_count</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">elapsed_time</span>
    <span class="ruby-identifier">assertion_throughput</span> = <span class="ruby-ivar">@result</span>.<span class="ruby-identifier">assertion_count</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">elapsed_time</span>
    <span class="ruby-identifier">throughput</span> = [
      <span class="ruby-string">&quot;%.2f tests/s&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">test_throughput</span>,
      <span class="ruby-string">&quot;%.2f assertions/s&quot;</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">assertion_throughput</span>,
    ]
    <span class="ruby-identifier">output</span>(<span class="ruby-identifier">throughput</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;, &quot;</span>))
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-output_summary_marker" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">output_summary_marker</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="output_summary_marker-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 351</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">output_summary_marker</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@progress_row_max</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-value">0</span>
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;-&quot;</span> <span class="ruby-operator">*</span> <span class="ruby-ivar">@progress_row_max</span>, <span class="ruby-identifier">summary_marker_color</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-ruby_2_0_or_later-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">ruby_2_0_or_later?</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="ruby_2_0_or_later-3F-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 589</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">ruby_2_0_or_later?</span>
  <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-string">&quot;2.0.0&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-setup_mediator" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">setup_mediator</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              
                                <div class="method-calls-super">
                                  Calls superclass method
                                  <a href="../TestRunner.html#method-i-setup_mediator"><code>Test::Unit::UI::TestRunner#setup_mediator</code></a>
                              </div>

                              <div class="method-source-code" id="setup_mediator-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 70</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">setup_mediator</span>
  <span class="ruby-keyword">super</span>
  <span class="ruby-identifier">output_setup_end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-started" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">started</span><span
                                class="method-args">(result)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="started-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 106</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">started</span>(<span class="ruby-identifier">result</span>)
  <span class="ruby-ivar">@result</span> = <span class="ruby-identifier">result</span>
  <span class="ruby-identifier">output_started</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-suite_name" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">suite_name</span><span
                                class="method-args">(prefix, suite)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="suite_name-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 399</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">suite_name</span>(<span class="ruby-identifier">prefix</span>, <span class="ruby-identifier">suite</span>)
  <span class="ruby-identifier">name</span> = <span class="ruby-identifier">suite</span>.<span class="ruby-identifier">name</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span>
    <span class="ruby-string">&quot;(anonymous)&quot;</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">name</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp">/\A#{Regexp.escape(prefix)}/</span>, <span class="ruby-string">&quot;&quot;</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-summary_marker_color" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">summary_marker_color</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="summary_marker_color-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 533</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">summary_marker_color</span>
  <span class="ruby-identifier">color</span>(<span class="ruby-node">&quot;#{@result.status}-marker&quot;</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-test_finished" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">test_finished</span><span
                                class="method-args">(test)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="test_finished-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 380</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_finished</span>(<span class="ruby-identifier">test</span>)
  <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@already_outputted</span>
    <span class="ruby-keyword">case</span> <span class="ruby-ivar">@progress_style</span>
    <span class="ruby-keyword">when</span> <span class="ruby-value">:inplace</span>
      <span class="ruby-identifier">mark</span> = <span class="ruby-ivar">@progress_marks</span>[<span class="ruby-ivar">@progress_mark_index</span>]
      <span class="ruby-ivar">@progress_mark_index</span> =
        (<span class="ruby-ivar">@progress_mark_index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>) <span class="ruby-operator">%</span> <span class="ruby-ivar">@progress_marks</span>.<span class="ruby-identifier">size</span>
      <span class="ruby-identifier">output_progress</span>(<span class="ruby-identifier">mark</span>, <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;pass-marker&quot;</span>))
    <span class="ruby-keyword">when</span> <span class="ruby-value">:mark</span>
      <span class="ruby-identifier">output_progress</span>(<span class="ruby-string">&quot;.&quot;</span>, <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;pass-marker&quot;</span>))
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-ivar">@already_outputted</span> = <span class="ruby-keyword">false</span>

  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">output?</span>(<span class="ruby-constant">VERBOSE</span>)

  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;: (%f)&quot;</span> <span class="ruby-operator">%</span> (<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@test_start</span>), <span class="ruby-keyword">nil</span>, <span class="ruby-constant">VERBOSE</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-test_started" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">test_started</span><span
                                class="method-args">(test)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="test_started-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 356</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_started</span>(<span class="ruby-identifier">test</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">output?</span>(<span class="ruby-constant">VERBOSE</span>)

  <span class="ruby-identifier">tab_width</span> = <span class="ruby-value">8</span>
  <span class="ruby-identifier">name</span> = <span class="ruby-identifier">test</span>.<span class="ruby-identifier">local_name</span>
  <span class="ruby-identifier">separator</span> = <span class="ruby-string">&quot;:&quot;</span>
  <span class="ruby-identifier">left_used</span> = <span class="ruby-identifier">indent</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">separator</span>.<span class="ruby-identifier">size</span>
  <span class="ruby-identifier">right_space</span> = <span class="ruby-identifier">tab_width</span> <span class="ruby-operator">*</span> <span class="ruby-value">2</span>
  <span class="ruby-identifier">left_space</span> = <span class="ruby-ivar">@progress_row_max</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">right_space</span>
  <span class="ruby-keyword">if</span> (<span class="ruby-identifier">left_used</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">tab_width</span>).<span class="ruby-identifier">zero?</span>
    <span class="ruby-identifier">left_space</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">left_used</span>
    <span class="ruby-identifier">n_tabs</span> = <span class="ruby-value">0</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">left_space</span> <span class="ruby-operator">-=</span> ((<span class="ruby-identifier">left_used</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">tab_width</span>) <span class="ruby-operator">+</span> <span class="ruby-value">1</span>) <span class="ruby-operator">*</span> <span class="ruby-identifier">tab_width</span>
    <span class="ruby-identifier">n_tabs</span> = <span class="ruby-value">1</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">n_tabs</span> <span class="ruby-operator">+=</span> [<span class="ruby-identifier">left_space</span>, <span class="ruby-value">0</span>].<span class="ruby-identifier">max</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">tab_width</span>
  <span class="ruby-identifier">tab_stop</span> = <span class="ruby-string">&quot;\t&quot;</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">n_tabs</span>
  <span class="ruby-identifier">output_single</span>(<span class="ruby-node">&quot;#{indent}#{name}#{separator}#{tab_stop}&quot;</span>,
                <span class="ruby-keyword">nil</span>,
                <span class="ruby-constant">VERBOSE</span>)
  <span class="ruby-ivar">@test_start</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-test_suite_finished" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">test_suite_finished</span><span
                                class="method-args">(suite)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="test_suite_finished-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 428</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_suite_finished</span>(<span class="ruby-identifier">suite</span>)
  <span class="ruby-ivar">@indent</span> <span class="ruby-operator">-=</span> <span class="ruby-value">2</span>
  <span class="ruby-ivar">@test_suites</span>.<span class="ruby-identifier">pop</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-test_suite_started" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">test_suite_started</span><span
                                class="method-args">(suite)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="test_suite_started-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 408</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_suite_started</span>(<span class="ruby-identifier">suite</span>)
  <span class="ruby-identifier">last_test_suite</span> = <span class="ruby-ivar">@test_suites</span>.<span class="ruby-identifier">last</span>
  <span class="ruby-ivar">@test_suites</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">suite</span>
  <span class="ruby-keyword">if</span> <span class="ruby-ivar">@top_level</span>
    <span class="ruby-ivar">@top_level</span> = <span class="ruby-keyword">false</span>
    <span class="ruby-keyword">return</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">indent</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-constant">VERBOSE</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">suite</span>.<span class="ruby-identifier">test_case</span>.<span class="ruby-identifier">nil?</span>
    <span class="ruby-identifier">_color</span> = <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;suite&quot;</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">_color</span> = <span class="ruby-identifier">color</span>(<span class="ruby-string">&quot;case&quot;</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">prefix</span> = <span class="ruby-node">&quot;#{last_test_suite.name}::&quot;</span>
  <span class="ruby-identifier">output_single</span>(<span class="ruby-identifier">suite_name</span>(<span class="ruby-identifier">prefix</span>, <span class="ruby-identifier">suite</span>), <span class="ruby-identifier">_color</span>, <span class="ruby-constant">VERBOSE</span>)
  <span class="ruby-identifier">output</span>(<span class="ruby-string">&quot;: &quot;</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-constant">VERBOSE</span>)
  <span class="ruby-ivar">@indent</span> <span class="ruby-operator">+=</span> <span class="ruby-value">2</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-windows-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">windows?</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="windows-3F-source">
            <pre><span class="ruby-comment"># File test-unit-3.6.1/lib/test/unit/ui/console/testrunner.rb, line 585</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">windows?</span>
  <span class="ruby-regexp">/mswin|mingw/</span> <span class="ruby-operator">===</span> <span class="ruby-constant">RUBY_PLATFORM</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

